<?php
session_start();
require_once("../config/include_tokyo.inc.php");

//访问权限验证
$userRole = $_SESSION['user_role'];
if($userRole == 1){
	//管理员
}else{
	if($userRole > 0){
		$url = "../index.php?loginError=2";//没权限
	}else{
		$url = "../index.php?loginError=3";//没登录
	}	
	echo "<script language='javascript' type='text/javascript'>";
	echo "window.location.href='$url'";
	echo "</script>";
}
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<!--Begin:head-->
<? $pageTitle = "评价管理"; ?>
<?php include("../head.php"); ?>
<!--End:head-->


<body>
<?php include("../topMenu.php"); ?>


<form name="listForm" action="../review/reviewInput.php" method="post">
<div id="container" >	

<div class="grayTable">	
<h4>评价管理:</h4>
<table >

<thead>
	<tr>
		<th scope="col" >网站</th>	    
		<th scope="col" width=100>操作</th>
	</tr>
</thead>

<tbody>
	<tr>
		<td>Hiteclaser</td>
		<td><input type="button" value="Reviews(H)" onclick="addReviews('H')"></td>
    </tr>
	<tr>
		<td>Lucklaser.jp</td>
		<td><input type="button" value="Reviews(LJ)" onclick="addReviews('LJ')"></td>
    </tr>
	<tr>
		<td>Lucklaser-KR</td>
		<td><input type="button" value="Reviews(LK)" onclick="addReviews('LK')"></td>
    </tr>
	<tr>
		<td>Laser-door</td>
		<td><input type="button" value="Reviews(LD)" onclick="addReviews('LD')"></td>
    </tr>
	<tr>
		<td>Lucklaser</td>
		<td><input type="button" value="Reviews(L)" onclick="addReviews('L')"></td>
    </tr>
	<tr>
		<td>Kennbikyou</td>
		<td><input type="button" value="Reviews(K)" onclick="addReviews('K')"></td>
    </tr>
	<tr>
		<td>DMicroscope</td>
		<td><input type="button" value="Reviews(D)" onclick="addReviews('D')"></td>
    </tr>
	<tr>
		<td>Spycamhidden</td>
		<td><input type="button" value="Reviews(S)" onclick="addReviews('S')"></td>
    </tr>
	<tr>
		<td>Civillaser</td>
		<td><input type="button" value="Reviews(C)" onclick="addReviews('C')" ></td>
    </tr>
	<tr>
		<td>Civillaser(jp)</td>
		<td><input type="button" value="Reviews(CJ)" onclick="addReviews('CJ')"></td>
    </tr>
	<tr>
		<td>Canetalaser</td>
		<td><input type="button" value="Reviews(CA)" onclick="addReviews('CA')"></td>
    </tr>
	<tr>
		<td>Civillaser(ge)</td>
		<td><input type="button" value="Reviews(CG)" onclick="addReviews('CG')" disabled="disabled"></td>
    </tr>
	<tr>
		<td>Civillaser(ru)</td>
		<td><input type="button" value="Reviews(CR)" onclick="addReviews('CR')" disabled="disabled"></td>
    </tr>
	<tr>
		<td>Civillaser(fr)</td>
		<td><input type="button" value="Reviews(CF)" onclick="addReviews('CF')" disabled="disabled"></td>
    </tr>
	<tr>
		<td>Civillaser(ko)</td>
		<td><input type="button" value="Reviews(CK)" onclick="addReviews('CK')" disabled="disabled"></td>
    </tr>
	<tr>
		<td>Civillaser(ar)</td>
		<td><input type="button" value="Reviews(CA)" onclick="addReviews('CA')" disabled="disabled"></td>
    </tr>

</tbody>
</table>	
					
</div>



<br><br>
</div><!--end container -->

<input type="hidden" name="currentSite" id="currentSite" >
</form>
</body>




</html>

<script>
function  addReviews(siteFlag){
	document.getElementById('currentSite').value = siteFlag;
	document.listForm.submit();
}
</script>

